<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="canvas" width="600" height="400"></canvas>
  <script>
    var canvas=document.querySelector("#canvas")
    var hb=canvas.getContext("2d")
    function ai(x,y){
      hb.moveTo(x,y)
      //300,200
      hb.bezierCurveTo(x+50,y-50,x+100,y,x,y+100)
    hb.moveTo(x,y)
    hb.bezierCurveTo(x-50,y-50,x-100,y,x,y+100)
    // hb.quadraticCurveTo(250,280,230,260)
    hb.stroke()
    }
    ai(300,200)
    ai(100,200)
    ai(100,100)
    ai(50,100)
    
  </script>
</body>
</html>